package org.nmgyjt.springboot.entity.admin;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2023-07-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_cs_system_source_type")
public class CsSystemSourceType implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键 ID
     */
    private String id;

    /**
     * 手机号码
     */
    private String name;

    /**
     * 部门 Id
     */
    private String status;

    /**
     * 父级id
     */
    private String parentId;

    /**
     * 包含机构的数量
     */
    @TableField(exist = false)
    private Integer mount;

    /**
     * 机构的集合
     */
    @TableField(exist = false)
    private List<CsSystemAdminAndOrgInfo> orgs;


    /**
     * 子级的集合
     */
    @TableField(exist = false)
    private List<CsSystemSourceType> children;

}
